package Servidor;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;



public class VentanaSER extends JFrame {
	
	private static final long serialVersionUID = 1L;
	private JTextArea jta;
	
	public VentanaSER(){
		configurar();
	}
	
	private void configurar()
	{
		Container c = this.getContentPane();
		jta = new JTextArea();
		JScrollPane jsp = new JScrollPane(jta);
		jsp.setSize(new Dimension(300,300));
		jsp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
		c.add(jsp,BorderLayout.CENTER);
		this.setSize(new Dimension(300,300));
		this.setVisible(true);
		
	}
	
	public void mostrar(String s) {
		
		jta.append(s);
	}
	
}
